package com.hakim.wfb.common.enums;

public enum CustomerOrderStatusEnum {

    NOT_SEND(1, "待发货"),
    SINGING(2, "待签收"),
    SIGNED(3, "已签收"),
    CANCELED(4, "已退单"),;

    private int value;

    private String description;

    private CustomerOrderStatusEnum(int value, String description) {
        this.value = value;
        this.description = description;
    }

    public int getValue() {
        return value;
    }

    public String getDescription() {
        return description;
    }

    public static CustomerOrderStatusEnum getByValue(int value) {
        CustomerOrderStatusEnum[] codes = values();
        for (CustomerOrderStatusEnum each : codes) {
            if (each.value == value) {
                return each;
            }
        }
        return null;
    }
}
